package org.framegen.example;

import org.framegen.config.JdbcConfig;
import org.framegen.core.FrameGenEntry;

import java.net.URISyntaxException;

public class VanillaMain {
    public static void main(String[] args) throws URISyntaxException {

        new FrameGenEntry(
                JdbcConfig.builder()
                        .url("jdbc:mysql://localhost:3306/framegen")
                        .username("root")
                        .password("123456")
                        .driverClassName("com.mysql.cj.jdbc.Driver")
                        .build())
                .outModule("framegen-example-corejava")
                .setPackage(builder -> {
                    builder.origin("org.framegen.example")
                            .model("model")
                    ;
                })
                .includes("user")
                .lombok()
                .mybatisPlus()
//                .kotlin()
                .run(VanillaMain.class);
    }
}
